import { createApp } from 'vue'
import naiveUI from 'naive-ui'
import router from './router/router'
import { createI18n } from 'vue-i18n'
import Provider from './components/Provider.vue'
import en from '@/locales/en.json'
import zh from '@/locales/zh.json'

const i18n = createI18n({
	locale: 'en',
	messages: {
		en,
		zh,
	},
})

createApp(Provider).use(i18n).use(router).use(naiveUI).mount('#app')
